package com.itqf.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Goods implements Serializable {
    private static final long serialVersionUID =1L;
    private int gid;
    private int tid;
    private Type type;
    private String gname;
    private Date gtime;
    private String img;
    private BigDecimal gprice;
    private int gstate;
    private  String ginfo;

    public Goods(int gid, int tid, Type type, String gname, Date gtime, String img, BigDecimal gprice, int gstate, String ginfo) {
        this.gid = gid;
        this.tid = tid;
        this.type = type;
        this.gname = gname;
        this.gtime = gtime;
        this.img = img;
        this.gprice = gprice;
        this.gstate = gstate;
        this.ginfo = ginfo;
    }

    public Goods() {
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public Date getGtime() {
        return gtime;
    }

    public void setGtime(Date gtime) {
        this.gtime = gtime;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public BigDecimal getGprice() {
        return gprice;
    }

    public void setGprice(BigDecimal gprice) {
        this.gprice = gprice;
    }

    public int getGstate() {
        return gstate;
    }

    public void setGstate(int gstate) {
        this.gstate = gstate;
    }

    public String getGinfo() {
        return ginfo;
    }

    public void setGinfo(String ginfo) {
        this.ginfo = ginfo;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "gid=" + gid +
                ", tid=" + tid +
                ", gname='" + gname + '\'' +
                ", gtime=" + gtime +
                ", img='" + img + '\'' +
                ", gprice=" + gprice +
                ", gstate=" + gstate +
                ", ginfo='" + ginfo + '\'' +
                '}';
    }
}
